function move_item(from, to)
{
  var f;
  var SI; /* selected Index */
  if(from.options.length>0)
  {
    for(i=0;i<from.length;i++)
    {
      if(from.options[i].selected)
      {
        SI=from.selectedIndex;
        f=from.options[SI].index;
        to.options[to.length]=new Option(from.options[SI].text,from.options[SI].value);
        from.options[f]=null;
        i--; /* make the loop go through them all */
      }
    }
  }
} 
            function selectAll() {
                var elSel = document.getElementById('selectX');
                for (var i = 0; i < elSel.options.length; i++) {
                    elSel.options[i].selected = true;
                }
            }                       